
def word_count(word1):
    same ='cat,playing,happily,sunny,running,jumpping'.split(',')
    count = 0
    for word in word1.split():
        if word in same:
            count += 1
    return count
word1 = 'In a sunny day,a little cat was running across the grass and jumpping over the wall happily to catch the little bird.'
result = word_count(word1)
print(result)    
        